/*
 * PointBuffResource.h
 *
 *  Created on: 2013. 9. 6.
 *      Author: mega@gamevil.com
 */

#ifndef POINTBUFFRESOURCE_H_
#define POINTBUFFRESOURCE_H_

#include <map>

namespace ProjectZ { namespace NResource {

class PointBuffData
{
public:
	struct Flyweight
	{
		int _BUFF_SEQ;
		int _MINUTE;
		int _RATE;
	};

public:
	PointBuffData() {};
	virtual ~PointBuffData();

	bool LoadResource(int company, int saleCode);
	Flyweight * GetFly(int buffSeq);

private:
	typedef	std::map<int, Flyweight *>	DATATREE;
	DATATREE	clsFlyTree;
};


class PointBuffResource
{
public:
	PointBuffResource();
	virtual ~PointBuffResource();

	bool LoadResource();
	PointBuffData::Flyweight * GetFly(int company, int saleCode, int buffSeq);

private:
	PointBuffData * pPointBuffAndroid;
	PointBuffData * pPointBuffIOS;
};

} /* NResource */ } /* ProjectZ */

#endif /* POINTBUFFRESOURCE_H_ */
